package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/9/6 19:17
 * @desrcption: 协同人增加
 */
@Getter
@Setter
@ToString
public class CoUserAddDTO extends BaseDTO {

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.coUserAdd.appId.NotNull}")
    private Long appId;
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.coUserAdd.formId.NotNull}")
    private Long formId;
    /**
     * 表单数据id
     */
    @NotNull(message = "{dto.msg.coUserAdd.formDataId.NotNull}")
    private Long formDataId;

    @NotEmpty(message = "{dto.msg.coUserAdd.coUserList.NotEmpty}")
    @Valid
    private List<String> coUserList;
}
